package com.xnyy.lottery.domain.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xnyy.lottery.domain.dto.ParkingSpaceQueryDTO;
import com.xnyy.lottery.domain.entity.ParkingSpace;
import org.apache.ibatis.annotations.Param;

import java.util.*;

/**
 * @description:
 * @auther: Administrator
 * @date: 2022/9/16 22:50
 */
public interface ParkingSpaceMapper extends BaseMapper<ParkingSpace> {
    /**
     * 查询车位集合
     *
     * @param dto
     * @return
     */
    List<ParkingSpace> selectObjectList(ParkingSpaceQueryDTO dto);

    /**
     * 随机选取指定条数
     *
     * @param region  车库
     * @return
     */
    List<ParkingSpace> selectRandList(@Param("region") String region);
}
